package com.zhuang.blog.base.exception;

/**
 * @Classname BlogException
 * @Description 自定义异常类
 * @Date 2021/10/30 8:45
 * @Author by dell
 */

public class BlogException extends RuntimeException {
    private BlogEnum blogEnum;

    public BlogException(BlogEnum blogEnum) {
        //想从异常堆栈中获取异常信息的话
        super(blogEnum.getMessage());
        this.blogEnum = blogEnum;
    }
}
